package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper {

    public boolean save(User user);

    public boolean update(User user);

    public boolean delete(Integer uuid);

    public User get(Integer uuid);

    public List<User> getAll();

    public List<User> getUsers( User user );

    public User getByUserNameAndPassword(@Param("userName") String userName,
                                         @Param("password") String password);
}
